//
//  GYX_CollectionData.m
//  MELive
//
//  Created by dllo on 16/10/22.
//  Copyright © 2016年 雅馨. All rights reserved.
//

#import "GYX_CollectionData.h"
#import "GYX_RoomCoverDetailList.h"
#import "GYX_LiveList.h"
@implementation GYX_CollectionData
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"roomCoverDetailList"]) {
        NSMutableArray<GYX_RoomCoverDetailList *> *topicListArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            GYX_RoomCoverDetailList *topicList = [GYX_RoomCoverDetailList modelWithDictionary:dic];
            [topicListArr addObject:topicList];
        }
        _roomCoverDetailList = topicListArr;
    }
    if ([key isEqualToString:@"userBasicInfo"]) {
        _userBasicInfo = [GYX_LiveList modelWithDictionary:value];
    }

}
@end
